import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import banner from './views/banner/index.vue'
import classify from './views/classify/index.vue'
import product from './views/product/index.vue'
import detail from './views/product/detail.vue'
let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-image',
        children: [
            { path: '/banner', component: banner, name: 'Bar管理' }
        ]
    },{
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-navicon',
        children: [
            { path: '/classify', component: classify, name: '分类管理' }
        ]
    },{
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-list',
        children: [
            { path: '/product', component: product, name: '商品管理' },
            { path: '/product/look', component: detail, name: '商品查看', hidden:true },
            { path: '/product/add', component: detail, name: '商品添加', hidden:true },
            { path: '/product/edit', component: detail, name: '商品编辑', hidden:true }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;
